<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="extjs/resources/css/ext-all.css">
<script type="text/javascript" src="extjs/ext.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>

<script type="text/javascript">
	var isSystemManager = false;
	window.onload = function() {
		var index = 1;
		var xmlhttp;
		if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
			xmlhttp = new XMLHttpRequest();
		} else {// code for IE6, IE5
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		xmlhttp.onreadystatechange = function() {
			var re = xmlhttp.responseText;
			if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
				mainFrame.showNickName(re);
				if (re == "管理员") {
					mainFrame.showSystemView();
					isSystemManager = true;
				}
			}

		}
		xmlhttp.open("GET", "main", true);
		xmlhttp.send();
	}

	function exit(arg) {
		if (arg != 1) {
			if (confirm('确定要退出系统吗？')) {
				window.location.href = "exit";
			}
		}
	}
	function relogin() {
		window.location.href = "exit";
	}
	function isSystem() {
		return isSystemManager;
	}
</script>
</head>
<frameset rows="89,*,20" cols="*" framespacing="0" frameborder="no"
	border="0">
	<frame src="top.html" name="topFrame" scrolling="No"
		noresize="noresize" id="topFrame" frameborder="0" />
	<frame src="cont.html" name="mainFrame" id="mainFrame" frameborder="0" />
	<frame src="foot.html" name="footFrame" id="footFrame" frameborder="0" />
</frameset>
<noframes>
	<body>
	</body>
</noframes>
</html>